package com.bears.god.sup.service;

import java.util.List;

import com.bears.god.sup.dao.DAOFactory;
import com.bears.god.sup.model.Vendor;

public class VendorServiceImp implements IVendorService {

	@Override
	public List<Vendor> findByfiveId(int num, int endnum) throws Exception {
		return DAOFactory.getVendorDAO().findByfiveId(num, endnum);
	}

	@Override
	public void save(Vendor vendor) throws Exception {
		DAOFactory.getVendorDAO().save(vendor);
		
	}

	@Override
	public Vendor findById(int id) throws Exception {
		return DAOFactory.getVendorDAO().findById(id);
	}

	@Override
	public void update(Vendor vendor) throws Exception {
		DAOFactory.getVendorDAO().update(vendor);
		
	}

	@Override
	public List<Vendor> findAll() throws Exception {
		return DAOFactory.getVendorDAO().findAll();
	}
	
	
	
}
